
package com.craterhill.java.ems.dao.impl;

import java.util.List;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.craterhill.java.ems.common.beans.Role;
import com.craterhill.java.ems.dao.RoleDao;

@Repository
public class RoleDaoImpl extends AbstractDao<Role> implements RoleDao {

	@Autowired
	public RoleDaoImpl(final DataSource dataSource) {
		super(dataSource);
	}

	public List<Role> findAll() {
		return super.findMultipleObject(FIND_ALL_ROLE, new RoleExtractor());
	}

	public int save(final Role role) {
		return 0;
	}

	public boolean update(final Role role) {
		return false;
	}

	public boolean remove(final Integer... roleIds) {
		return false;
	}

	public Role find(final int roleId) {
		return null;
	}
}
